Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline created from API gets overwritten by config file with duplicate ID #1229

Merged
merged 18 commits into from
Oct 13, 2023

Conversation

AdamHaffar
Copy link
Contributor

Description

Adds a check in provisioning/service.go for any Pipelines in the pipelineService with the same ID as any of the pipelines in configs.

Refactors other tests in service_test.go to account for extra call of .Get() method.

Fixes #837

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@AdamHaffar AdamHaffar requested a review from a team as a code owner October 4, 2023 10:43
pkg/provisioning/errors.go Outdated Show resolved Hide resolved
pkg/provisioning/service.go Outdated Show resolved Hide resolved
pkg/provisioning/service.go Outdated Show resolved Hide resolved
Copy link
Member

@lovromazgon lovromazgon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hariso hariso enabled auto-merge (squash) October 13, 2023 07:54
@hariso hariso merged commit c40884a into main Oct 13, 2023
3 checks passed
@hariso hariso deleted the adam/overwrite-api-pipeline-fix branch October 13, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Config file pipeline overwrites pipeline provisioned by API
4 participants